#!/bin/sh

chmod +x ./git-hooks/pre-commit
chmod +x ./git-hooks/create-hook-symlinks

if [ -x vendor/bin/phpcs ]; then
    HAS_PHP_CS_FIXER=true
    vendor/bin/phpcs --config-set installed_paths vendor/escapestudios/symfony2-coding-standard >> /dev/null;
fi

sh git-hooks/create-hook-symlinks

echo "Git hooks init done";